#ifndef _NODE_C
#define _NODE_C

#include "_Node.h"

/* Constructor */
_Node *
_newNode(void *newData)
{
    _Node *toReturn = malloc(sizeof(_Node));

    if(toReturn == NULL) {
        fprintf(stderr, 
                "%s:%d Error: malloc returned NULL\n", 
                __FILE__, 
                __LINE__);

        return NULL;
    }

    toReturn->data      = newData;
    toReturn->leftNode  = NULL;
    toReturn->rightNode = NULL;

    return toReturn;
}

/* Standard destructor */
void
_deleteNode(_Node *deleteThis)
{
    free(deleteThis);
}

#endif
